package caiziyou.com.designpattern.commond;

public class LightOffCommond implements Commond {

	private LightReceiver light;

	public LightOffCommond(LightReceiver light) {
		this.light = light;
	}

	@Override
	public void execute() {
		light.off();
	}

	@Override
	public void undo() {
		light.on();
	}

}
